﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NQ_Select_Products_Window.aspx.cs" Inherits="NQ_Select_Products_Window" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>商品基本维护</title>
    <link href="../css/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" target="_self">
    <div align="center">
        <table border="0" width="100%">
            <tr>
                <td class="title" style="width: 769px">
                    选择引用商品</td>
                <td>
                </td>
            </tr>
            <tr style="width:800px;">
                
                <td style="width: 769px">
                    &nbsp; &nbsp; &nbsp; &nbsp;关键字 &nbsp;
                    <asp:TextBox ID="Key" runat="server" Width="79px" ></asp:TextBox>&nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="searchButton" runat="server" ImageUrl="~/images/sub_search.gif" OnClick="searchButton_Click" />
                    &nbsp; &nbsp; 
                    <asp:Label ID="Label1" runat="server" Text="没有您要的信息" Visible="False" ForeColor="Red"></asp:Label>
                    &nbsp;
                    &nbsp;&nbsp;</td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="width: 769px">
                    &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:GridView ID="SearchResult" runat="server" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px"
                        CellPadding="4" Width="538px" OnRowDeleting="SearchResult_RowDeleting"  
                        DataKeyNames="ID" AllowPaging="True" 
                        onpageindexchanging="SearchResult_PageIndexChanging" PageSize="5">
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <Columns>
<%--                            <asp:HyperLinkField DataNavigateUrlFields="ProductsID" DataNavigateUrlFormatString="ShowproductsInfo.aspx?ProductsID={0}"
                                HeaderText="商品编号" Target="_blank" Text="&lt;img border=0 src=../images/View.gif /&gt;" >
                                <ItemStyle Width="60px" />
                            </asp:HyperLinkField>
                            <asp:BoundField DataField="ProductsID" HeaderText="商品编号" SortExpression="ProductsID" >
                                <ItemStyle Width="80px" />
                            </asp:BoundField>--%>
                            <asp:TemplateField HeaderText="商品名称" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_PRODUCT)Container.DataItem).NAME%>
                            </ItemTemplate>                 
                            </asp:TemplateField>         
                            <asp:TemplateField HeaderText="商品编码" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_PRODUCT)Container.DataItem).CODE%>
                            </ItemTemplate>                 
                            </asp:TemplateField>    
                            <asp:TemplateField HeaderText="型号" >
                             <ItemStyle  Width="200px"/>
                            <ItemTemplate>                 
                                    <%# ((WX.WMS.DataModel.T_PRODUCT)Container.DataItem).MODEL%>
                            </ItemTemplate>                 
                            </asp:TemplateField>      
                                                                                                                                                                                                                                                                                                                                              
                            <asp:CommandField DeleteText="&lt;img border=0 src=../images/Select.gif /&gt;" ShowDeleteButton="True" />
                        </Columns>
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#E2F3FA" Font-Bold="True" ForeColor="Black" />
                    </asp:GridView>
                    &nbsp;
                    
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td align="center" style="height: 17px; width: 769px;">
                    &nbsp; &nbsp;
                </td>
                <td style="height: 17px">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
